obj-m := hello_proc.o 

#KDIR  := /lib/modules/$(shell uname -r)/build
KDIR  := /home/chzhou/code/2440/kernel
PWD   := $(shell pwd)

CC  = $(CROSS_COMPILE)gcc

default:
	$(MAKE) -C $(KDIR) M=$(PWD) modules

clean:
	rm -fr *.o *~core *.ko *.mod.c *.order *.symvers *.markers .*cmd .tmp_versions 
